#!/bin/bash
#
# Get all marc files for sussex and place them in sussexincoming
#
MARCIMPORT=/usr/local/marcimport
SABRE=/usr/local/vufind-smu
# Disable JETTY_CONSOLE output -- it causes problems when run by cron:
export JETTY_CONSOLE=/dev/null
#
date
#
############################################
# Get files...
cd $MARCIMPORT
pwd
cd full
# keep a back up of last times files
rm -fr sussexincoming.old
cp -pr sussexincoming sussexincoming.old
#
cd sussexincoming
rm -f *
# sussexincoming is now empty.
#scp talis@ustalis:/scratch/Aqua/initial/bib/prod_talis/norm/grabbed.bibsg*.mrc .
scp talis@ustalis:/usr/opt/blcmp/primo/export_full/sabre_full/*.mrc .
#cp $MARCIMPORT/partial/sussexincoming/*.mrc .
ls -l
echo "Sussex file copy complete"
date

